package com.example.mine.model

import com.bw.common.base.BaseRepository
import com.example.common.entity.Res
import com.example.common.entity.SendLoginCodeEntity
import com.example.common.utils.ApiService
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

class UserRepository @Inject constructor(private val apiService :ApiService):BaseRepository(){
    fun getSendLoginCode(operatorType:String,phone:String): Flow<Res<Boolean>> {
        return  safeApiFlow {
            apiService.getSendLoginCode(operatorType,phone)
        }
    }
}